<table>
	<caption><g:message code="shiro.user.id.label" default="Id" />:${fieldValue(bean: userInstance, field: "id")}</caption>
    <tbody>
        <tr class="prop">
            <td class="name"><g:message code="shiro.user.username.label" default="Username" /></td>
            <td class="value">${fieldValue(bean: userInstance, field: "username")}</td>
        </tr>
        <tr class="prop">
            <td class="name"><g:message code="shiro.user.passwordHash.label" default="Password Hash" /></td>
            <td class="value">${fieldValue(bean: userInstance, field: "passwordHash")}</td>
        </tr>
        <tr class="prop">
            <td class="name"><g:message code="shiro.user.permissions.label" default="Permissions" /></td>
            <td class="value">${fieldValue(bean: userInstance, field: "permissions")}</td>
        </tr>
        <tr class="prop">
            <td class="name"><g:message code="shiro.user.roles.label" default="Roles" /></td>
            <td style="text-align: left;" class="value">
                <ul>
                <g:each in="${userInstance.roles}" var="r">
                    <li><g:link controller="role" action="show" id="${r.id}">${r?.name?.encodeAsHTML()}</g:link></li>
                </g:each>
                </ul>
            </td>
        </tr>
    </tbody>
</table>